CentOS 6
Sponsored Link

OpenStack Icehouse : Configure Cinder#2(Service Node)
2014/06/26
 
Install OpenStack Block Storage (Cinder).
For this example, Install Cinder API Server on Control Node which Keystone/Glance/Nova API are already installed, and Install Cinder-Volume on Block Storage Service Node.
                                      +------------------+
                             10.0.0.35| [ Storage Node ] |
+------------------+            +-----+   Cinder-Volume  |
| [ Control Node ] |            | eth0|                  |
|     Keystone     |10.0.0.30   |     +------------------+
|      Glance      |------------+
|     Nova API     |eth0        |     +------------------+
|    Cinder API    |            | eth0| [ Compute Node ] |
+------------------+            +-----+   Nova Compute   |
                             10.0.0.51|                  |
                                      +------------------+

 
Configure Block Storage Service Node on this section.
[1] Install Cinder Volume.
# install from RDO, EPEL

[root@storage ~]#
yum --enablerepo=openstack-icehouse,epel -y install openstack-cinder
[2] Configure Cinder Volume.
[root@storage ~]#
mv /etc/cinder/cinder.conf /etc/cinder/cinder.conf.org

[root@storage ~]#
vi /etc/cinder/cinder.conf
# create new

[DEFAULT]
state_path=/var/lib/cinder
api_paste_config=api-paste.ini
enable_v1_api=true
osapi_volume_listen=0.0.0.0
osapi_volume_listen_port=8776
rootwrap_config=/etc/cinder/rootwrap.conf
auth_strategy=keystone
# specify Glance server

glance_host=10.0.0.30
glance_port=9292
# specify RabbitMQ server

rabbit_host=10.0.0.30
rabbit_port=5672
# RabbitMQ user for auth

rabbit_userid=guest
# RabbitMQ user's password for auth

rabbit_password=password
rpc_backend=rabbit
# specify iSCSI target (it's just the own IP)

iscsi_ip_address=10.0.0.35
iscsi_port=3260
iscsi_helper=tgtadm
scheduler_driver=cinder.scheduler.filter_scheduler.FilterScheduler
volume_manager=cinder.volume.manager.VolumeManager
volume_api_class=cinder.volume.api.API
volumes_dir=$state_path/volumes
# auth info for MariaDB

[database]
connection=mysql://cinder:password@10.0.0.30/cinder
# auth info for Keystone

[keystone_authtoken]
auth_host=10.0.0.30
auth_port=35357
auth_protocol=http
admin_user=cinder
admin_password=servicepassword
admin_tenant_name=service
[root@storage ~]#
chmod 640 /etc/cinder/cinder.conf

[root@storage ~]#
chgrp cinder /etc/cinder/cinder.conf

[root@storage ~]#
/etc/rc.d/init.d/openstack-cinder-volume start

Starting openstack-cinder-volume: [ OK ]
[root@storage ~]#
chkconfig openstack-cinder-volume on

# show status

[root@storage ~]#
cinder-manage service list

Binary           Host            Zone             Status     State Updated At
cinder-scheduler dlp             nova             enabled    :-)   2014-06-27 00:41:14
cinder-volume    storage         nova             enabled    :-)   2014-06-27 00:41:20

* the vulnerability warnings below is displayed every "cinder-manage" command, it works normally, though security vulnerability remains.
/usr/lib64/python2.6/site-packages/Crypto/Util/number.py:57:
PowmInsecureWarning: Not using mpz_powm_sec.
You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
_warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5
to avoid timing attack vulnerability.", PowmInsecureWarning)
 
Tweet